package com.github.caijh.mall.express.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.caijh.mall.common.PageParams;
import com.github.caijh.mall.express.model.ShippingTemplates;
import com.github.caijh.mall.express.request.ShippingTemplatesReqBody;
import com.github.caijh.mall.express.request.ShippingTemplatesSearchRequest;

public interface ShippingTemplatesService extends IService<ShippingTemplates> {

    List<ShippingTemplates> getList(ShippingTemplatesSearchRequest request, PageParams pageParams);

    boolean create(ShippingTemplatesReqBody request);

    boolean update(Integer id, ShippingTemplatesReqBody request);

    boolean remove(Integer id);

    /**
     * 根据模版id集合获取订单集合
     *
     * @param ids 模版ids
     * @return 模版集合
     */
    List<ShippingTemplates> getListInIds(List<Integer> ids);

}
